﻿package control
{
    import com.core.*;

    public class BuffersControl extends Control
    {

        public function BuffersControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "bufferView")
            {
                if (param2.property == "addItemBuffer")
                {
                    this.target.addItemBuffer(param2.newvalue);
                }
                else if (param2.property == "removeItemBuffer")
                {
                    this.target.removeItemBuffer(param2.newvalue);
                }
                else if (param2.property == "addSkillBuffer")
                {
                    this.target.addSkillBuffer(param2.newvalue);
                }
                else if (param2.property == "removeSkillBuffer")
                {
                    this.target.removeSkillBuffer(param2.newvalue);
                }
                else if (param2.property == "removeAllRingBuffer")
                {
                    this.target.removeAllRingBuffer();
                }
                else if (param2.property == "swapeRingBuffer")
                {
                    this.target.swapeRingBuffer(param2.newvalue);
                }
                else if (param2.property == "changeFashionBuffer")
                {
                    this.target.swapeFashionBuffer(param2.newvalue);
                }
                else if (param2.property == "juling")
                {
                    this.target.juling(param2.newvalue);
                }
                else if (param2.property == "showBindBuffer")
                {
                    this.target.createAllBindBuffer();
                }
                else if (param2.property == "addBindBuffer")
                {
                    this.target.addItemBindBuffer(param2.newvalue);
                }
                else if (param2.property == "removeBindBuffer")
                {
                    this.target.removeBufferItem(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
